package demo.practice.bit;

public class P371 {

    public static void main(String[] args) {
        System.out.println(Integer.toBinaryString(-2));
        System.out.println(-2>>10);
    }


    public int getSum(int a, int b) {

        if(a==0)
            return b;

        return getSum((a&b)<<1,a^b);
    }
}
